@echo off

REM ######################################################################
REM # To run this script, the following system variables need to be set: #
REM #  - JAVA_WTK_HOME : Sun Wireless Tollkit directory                  #
REM ######################################################################

REM #############################
REM # Module used on this test: #
REM #############################
set MODULE=1


REM #########################
REM # Other set up options: #
REM #########################

REM ########################################
REM # The following devices are available: #
REM #  -  DefaultColorPhone                #
REM #  -  DefaultGrayPhone                 #
REM #  -  MediaControlSkin                 #
REM #  -  QwertyDevice                     #
REM ########################################
set DEVICE=DefaultColorPhone

REM #######################################
REM # To allow debug uncomment this line: #
REM #######################################
REM set DEBUG=-Xdebug -Xrunjdwp:transport=dt_socket,address=5050,server=y,suspend=y

REM ################################
REM # Executable/desctiptor files: #
REM ################################
set APP_CP=dist/JavaMEStudyGuide.jar
set DESC=etc/JavaMEStudyGuide-Module%MODULE%.jad



REM ######################################################################
REM ######################################################################
REM # Execution:                                                         #
REM ######################################################################
%JAVA_WTK_HOME%\bin\emulator -cp %APP_CP% -Xdescriptor %DESC% %DEBUG% -Xdevice:%DEVICE%
REM ######################################################################
REM # Documentation:                                                     #
REM ######################################################################
REM # Syntax:
REM # emulator [arguments] <Application>
REM # Arguments are:
REM # -classpath, -cp    The class path for the VM
REM # -D<property=value> Property definitions
REM # -version           Display version information about the emulator
REM # -help              Display list of valid arguments
REM # -Xverbose[: allocation | gc | gcverbose | class | classverbose |
REM #          verifier | stackmaps | bytecodes | calls | 
REM #          callsverbose | frames | stackchunks | exceptions | 
REM #          events | threading | monitors | networking | all
REM #                    enable verbose output
REM # -Xquery
REM #                    Query options
REM # -Xdebug            Use a remote debugger
REM # -Xrunjdwp:[transport=<transport>,address=<address>,server=<y/n>
REM #            suspend=<y/n>]
REM #                    Debugging options
REM # -Xdevice:<device name>
REM #                    Name of the device to be emulated
REM # -Xdescriptor:<JAD file name>
REM #                    The JAD file to be executed
REM # -Xjam[:install=<JAD file url> | force | list | storageNames |
REM #            run=[<storage name> | <storage number>] |
REM #            remove=[<storage name> | <storage number> | all] |
REM #            transient=<JAD file url>]
REM #                    Java Application Manager and support
REM #                    for Over The Air provisioning (OTA)
REM # -Xautotest:<JAD file url>
REM #                    Run in autotest mode
REM # -Xheapsize:<size>  (e.g. 65536 or 128k or 1M)
REM #                    specifies the VM heapsize
REM #                    (overrides default value)
REM # -Xprefs:<filename> Override preferences by properties in file
REM # -Xnoagent          Supported for backwards compatibility
REM # -Xdomain:<domain_name>
REM #                    Set the MIDlet suite's security domain
